package com.ad.payload.dto.trade;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 次级行业
 * </p>
 *
 * @author gdx
 * @since 2021-05-03
 */
@Data
public class TradeSubAddDto implements Serializable {

private static final long serialVersionUID=1L;

    @NotNull(message = "主行业id不能为空!")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long tradeId;

    @NotNull(message = "子行业名称不能为空!")
    private String subName;

//    @NotNull(message = "上下架状态不能为空!")
    private Integer status;

    private Integer level;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;

    private String path;
    

}
